home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CICA 1995 August
/
CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso
/
disc2
/
patches
/
symantec
/
pro61.exe
/
UPDATE.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-12-30
|
19KB
|
686 lines
@echo off
cls
if exist BIN\SCD.DLL goto install
if exist BIN\SC.EXE goto install
goto wrongdir
:install
rem ------------------------------------------------
REM If VPRG is installed, we should add BIN\GRAPHIC
if not exist bin\VPRG.EXE goto nograph
if exist bin\graphic\*.* goto nograph
@echo Adding BIN\GRAPHIC\*.*
md bin\graphic
cd bin\graphic
..\..\graphic
cd ..\..
@echo DONE
@echo .
:nograph
rem ------------------------------------------------
REM If MFC samples are installed, we add three more
REM and get rid of the RES dirs in SCRIBBLE
copy foo.txt mfc\samples\foo.txt
if not exist BIN\VPRG.EXE goto nomfcsam
if not exist MFC\SAMPLES\*.* goto nomfcsam
if exist mfc\samples\doctemp\*.* goto nomfcsam
if exist mfc\samples\dib\*.* goto nomfcsam
if exist mfc\samples\calc\*.* goto nomfcsam
@echo Updating MFC samples
cd mfc\samples
del foo.txt
..\..\mfcsam -d
del scribble\step0\res\*.ico
del scribble\step0\res\*.bmp
rd scribble\step0\res
del scribble\step1\res\*.ico
del scribble\step1\res\*.bmp
rd scribble\step1\res
del scribble\step2\res\*.ico
del scribble\step2\res\*.bmp
rd scribble\step2\res
del scribble\step3\res\*.ico
del scribble\step3\res\*.bmp
rd scribble\step3\res
del scribble\step4\res\*.ico
del scribble\step4\res\*.bmp
del scribble\step4\*.res
rd scribble\step4\res
del scribble\step5\res\*.ico
del scribble\step5\res\*.bmp
rd scribble\step5\res
cd ..\..
@echo DONE
@echo .
:nomfcsam
rem ------------------------------------------------
REM If MFC is installed, get rid of README directory
if not exist MFC\README\*.* goto nomfcrd
@echo Deleting MFC\README
del mfc\readme\*.txt
rd mfc\readme
@echo DONE
@echo .
:nomfcrd
rem ------------------------------------------------
REM Patching BIN directory
@echo Patching BIN directory
patch .\bin bin.rtp /ignore /nopathsearch
@echo DONE
@echo .
rem ------------------------------------------------
REM Patching BIN\WELCOME directory
if not exist BIN\WELCOME\*.* goto nowelcme
@echo Patching BIN\WELCOME directory
patch .\bin\welcome welcme.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nowelcme
rem ------------------------------------------------
REM Patching SRC\CTOOLS directory
if not exist src\ctools\*.* goto noctool
@echo Patching SRC\CTOOLS directory
patch .\src\ctools ctools.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noctool
rem ------------------------------------------------
REM Patching SRC\DOS386 directory
if not exist src\dos386\*.* goto nodos386
@echo Patching SRC\DOS386 directory
patch .\src\dos386 dos386.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nodos386
rem ------------------------------------------------
REM Patching SRC\CLIB directory
if not exist src\clib\*.* goto noclib
@echo Patching SRC\CLIB directory
patch .\src\clib clib.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noclib
rem ------------------------------------------------
REM Patching SRC\WIN32 directory
if not exist src\win32\*.* goto now32src
@echo Patching SRC\WIN32 directory
patch .\src\win32 win32src.rtp /ignore /nopathsearch
@echo DONE
@echo .
rem ------------------------------------------------
REM Patching SRC\WIN32\FLAT directory
@echo Patching SRC\WIN32\FLAT directory
patch .\src\win32\flat flat.rtp /ignore /nopathsearch
@echo DONE
@echo .
:now32src
rem ------------------------------------------------
REM Patching SAMPLES\WIN32\FONTVIEW directory
if not exist SAMPLES\WIN32\FONTVIEW\*.* goto nofontvw
@echo Patching SAMPLES\WIN32\FONTVIEW directory
patch .\samples\win32\fontview fontvw.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nofontvw
rem ------------------------------------------------
REM Patching SAMPLES\WIN32\GDIDEMO directory
if not exist SAMPLES\WIN32\GDIDEMO\*.* goto nogdidem
@echo Patching SAMPLES\WIN32\GDIDEMO directory
patch .\samples\win32\gdidemo gdidem.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nogdidem
rem ------------------------------------------------
REM Patching SAMPLES\WIN32\MYPAL directory
if not exist SAMPLES\WIN32\MYPAL\*.* goto nomypal
@echo Patching SAMPLES\WIN32\MYPAL directory
patch .\samples\win32\mypal mypal.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomypal
rem ------------------------------------------------
REM Patching SAMPLES\WIN32\FRACTAL directory
if not exist SAMPLES\WIN32\FRACTAL\*.* goto nofractl
@echo Patching SAMPLES\WIN32\FRACTAL directory
patch .\samples\win32\fractal fractl.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nofractl
rem ------------------------------------------------
REM Patching SAMPLES\WIN32\SIMPLDLL directory
if not exist SAMPLES\WIN32\SIMPLDLL\*.* goto nosimpl
@echo Patching SAMPLES\WIN32\SIMPLDLL directory
patch .\samples\win32\simpldll simpl.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nosimpl
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\DLLPROJ directory
if not exist SAMPLES\WINDOWS\DLLPROJ\*.* goto nodllprj
@echo Patching SAMPLES\WINDOWS\DLLPROJ directory
patch .\samples\windows\dllproj dllprj.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nodllprj
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\HELPEX directory
if not exist SAMPLES\WINDOWS\HELPEX\*.* goto nohelpex
@echo Patching SAMPLES\WINDOWS\HELPEX directory
patch .\samples\windows\helpex helpex.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nohelpex
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\STRESS directory
if not exist SAMPLES\WINDOWS\STRESS\*.* goto nostress
@echo Patching SAMPLES\WINDOWS\STRESS directory
patch .\samples\windows\stress stress.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostress
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\ZOOM directory
if not exist SAMPLES\WINDOWS\ZOOM\*.* goto nozoom
@echo Patching SAMPLES\WINDOWS\ZOOM directory
patch .\samples\windows\zoom zoom.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nozoom
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\ANIMATE directory
if not exist SAMPLES\WINDOWS\ANIMATE\*.* goto noanimat
@echo Patching SAMPLES\WINDOWS\ANIMATE directory
patch .\samples\windows\animate animat.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noanimat
rem ------------------------------------------------
REM Patching SAMPLES\WINDOWS\WCLOCK directory
if not exist SAMPLES\WINDOWS\WCLOCK\*.* goto nowclock
@echo Patching SAMPLES\WINDOWS\WCLOCK directory
patch .\samples\windows\wclock wclock.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nowclock
rem ------------------------------------------------
REM Patching LIB directory
@echo Patching LIB directory
patch .\lib lib.rtp /ignore /nopathsearch
@echo DONE
@echo .
rem ------------------------------------------------
REM Patching WIN32S directory
copy foo.txt win32s\foo.txt
if not exist WIN32S\*.* goto nowin32s
del win32s\foo.txt
rem ------------------------------------------------
REM Patching WIN32S\FLOPPY directory
if not exist WIN32S\FLOPPY\*.* goto now32flp
@echo Patching WIN32S\FLOPPY directory
patch .\win32s\floppy w32flop.rtp /ignore /nopathsearch
@echo DONE
@echo .
:now32flp
rem ------------------------------------------------
REM Patching WIN32S\DEBUG directory
if not exist WIN32S\DEBUG\*.* goto now32deb
@echo Patching WIN32S\DEBUG directory
patch .\win32s\debug w32deb.rtp /ignore /nopathsearch
@echo DONE
@echo .
:now32deb
rem ------------------------------------------------
REM Patching WIN32S\NODEBUG directory
if not exist WIN32S\NODEBUG\*.* goto now32nod
@echo Patching WIN32S\NODEBUG directory
patch .\win32s\nodebug w32nod.rtp /ignore /nopathsearch
@echo DONE
@echo .
:now32nod
rem ------------------------------------------------
REM Patching WIN32S\NLS directory
if not exist WIN32S\NLS\*.* goto now32nls
@echo Patching WIN32S\NLS directory
patch .\win32s\nls w32nls.rtp /ignore /nopathsearch
@echo DONE
@echo .
:now32nls
:nowin32s
rem ------------------------------------------------
REM Patching MFC\SRC directory
if not exist MFC\SRC\*.* goto nomfcsrc
@echo Patching MFC\SRC directory
patch .\mfc\src mfcsrc.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomfcsrc
rem ------------------------------------------------
REM Patching MFC\LIB directory
if not exist MFC\LIB\*.* goto nomfclib
@echo Patching MFC\LIBSRC directory
patch .\mfc\lib mfclib.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomfclib
rem ------------------------------------------------
REM Patching MFC\INCLUDE directory
if not exist MFC\INCLUDE\*.* goto nomfcinc
@echo Patching MFC\INCLUDE directory
patch .\mfc\include mfcinc.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomfcinc
rem ------------------------------------------------
REM Patching MFC\SAMPLES\CHKBOOK directory
if not exist MFC\SAMPLES\CHKBOOK\*.* goto nochkbok
@echo Patching MFC\SAMPLES\CHKBOOK directory
patch .\mfc\samples\chkbook chkbok.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nochkbok
rem ------------------------------------------------
REM Patching MFC\SAMPLES\CRTLBARS directory
if not exist MFC\SAMPLES\CTRLBARS\*.* goto noctrlbr
@echo Patching MFC\SAMPLES\CTRLBARS directory
patch .\mfc\samples\ctrlbars ctrlbr.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noctrlbr
rem ------------------------------------------------
REM Patching MFC\SAMPLES\CTRLTEST directory
if not exist MFC\SAMPLES\CTRLTEST\*.* goto noctrlts
@echo Patching MFC\SAMPLES\CTRLTEST directory
patch .\mfc\samples\ctrltest ctrlts.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noctrlts
rem ------------------------------------------------
REM Patching MFC\SAMPLES\DIBLOOK directory
if not exist MFC\SAMPLES\DIBLOOK\*.* goto nodiblok
@echo Patching MFC\SAMPLES\DIBLOOK directory
patch .\mfc\samples\diblook diblok.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nodiblok
rem ------------------------------------------------
REM Patching MFC\SAMPLES\DLLTRACE directory
if not exist MFC\SAMPLES\DLLTRACE\*.* goto nodlltrc
@echo Patching MFC\SAMPLES\DLLTRACE directory
patch .\mfc\samples\DLLTRACE dlltrc.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nodlltrc
rem ------------------------------------------------
REM Patching MFC\SAMPLES\HELLO directory
if not exist MFC\SAMPLES\HELLO\*.* goto nohello
@echo Patching MFC\SAMPLES\HELLO directory
patch .\mfc\samples\hello hello.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nohello
rem ------------------------------------------------
REM Patching MFC\SAMPLES\HELLOAPP directory
if not exist MFC\SAMPLES\HELLOAPP\*.* goto noheloap
@echo Patching MFC\SAMPLES\HELLOAPP directory
patch .\mfc\samples\helloapp heloap.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noheloap
rem ------------------------------------------------
REM Patching MFC\SAMPLES\HIERSVR directory
if not exist MFC\SAMPLES\HIERSVR\*.* goto nohier
@echo Patching MFC\SAMPLES\HIERSVR directory
patch .\mfc\samples\hiersvr hier.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nohier
rem ------------------------------------------------
REM Patching MFC\SAMPLES\MDI directory
if not exist MFC\SAMPLES\MDI\*.* goto nomdi
@echo Patching MFC\SAMPLES\MDI directory
patch .\mfc\samples\mdi mdi.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomdi
rem ------------------------------------------------
REM Patching MFC\SAMPLES\MINSVR directory
if not exist MFC\SAMPLES\MINSVR\*.* goto nominsvr
@echo Patching MFC\SAMPLES\MINSVR directory
patch .\mfc\samples\minsvr minsvr.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nominsvr
rem ------------------------------------------------
REM Patching MFC\SAMPLES\MULTIPAD directory
if not exist MFC\SAMPLES\MULTIPAD\*.* goto nomulti
@echo Patching MFC\SAMPLES\MULTIPAD directory
patch .\mfc\samples\multipad multi.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nomulti
rem ------------------------------------------------
REM Patching MFC\SAMPLES\OCLIENT directory
if not exist MFC\SAMPLES\OCLIENT\*.* goto nooclt
@echo Patching MFC\SAMPLES\OCLIENT directory
patch .\mfc\samples\oclient oclt.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nooclt
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SPEAKN directory
if not exist MFC\SAMPLES\SPEAKN\*.* goto nospeakn
@echo Patching MFC\SAMPLES\SPEAKN directory
patch .\mfc\samples\speakn speakn.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nospeakn
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SUPERPAD directory
if not exist MFC\SAMPLES\SUPERPAD\*.* goto nosuper
@echo Patching MFC\SAMPLES\SUPERPAD directory
patch .\mfc\samples\superpad super.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nosuper
rem ------------------------------------------------
REM Patching MFC\SAMPLES\TRACER directory
if not exist MFC\SAMPLES\TRACER\*.* goto notracer
@echo Patching MFC\SAMPLES\TRACER directory
patch .\mfc\samples\tracer tracer.rtp /ignore /nopathsearch
@echo DONE
@echo .
:notracer
rem ------------------------------------------------
REM Patching MFC\SAMPLES\DLLHUSK directory
if not exist MFC\SAMPLES\DLLHUSK\*.* goto nohusk
@echo Patching MFC\SAMPLES\DLLHUSK directory
patch .\mfc\samples\DLLHUSK husk.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nohusk
rem ------------------------------------------------
REM Patching MFC\SAMPLES\VIEWEX directory
if not exist MFC\SAMPLES\VIEWEX\*.* goto noviewex
@echo Patching MFC\SAMPLES\VIEWEX directory
patch .\mfc\samples\viewex viewex.rtp /ignore /nopathsearch
@echo DONE
@echo .
:noviewex
rem ------------------------------------------------
REM Patching MFC\SAMPLES\VBCHART directory
if not exist MFC\SAMPLES\VBCHART\*.* goto novbchrt
@echo Patching MFC\SAMPLES\VBCHART directory
patch .\mfc\samples\VBCHART vbchrt.rtp /ignore /nopathsearch
@echo DONE
@echo .
:novbchrt
rem ------------------------------------------------
REM Patching MFC\SAMPLES\VBCIRCLE directory
if not exist MFC\SAMPLES\VBCIRCLE\*.* goto novbcirc
@echo Patching MFC\SAMPLES\VBCIRCLE directory
patch .\mfc\samples\vbcircle vbcirc.rtp /ignore /nopathsearch
@echo DONE
@echo .
:novbcirc
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP0\*.* goto nostep0
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP0 directory
patch .\mfc\samples\scribble\step0 step0.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep0
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP1\*.* goto nostep1
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP1 directory
patch .\mfc\samples\scribble\step1 step1.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep1
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP2\*.* goto nostep2
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP2 directory
patch .\mfc\samples\scribble\step2 step2.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep2
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP3\*.* goto nostep3
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP3 directory
patch .\mfc\samples\scribble\step3 step3.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep3
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP4\*.* goto nostep4
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP4 directory
patch .\mfc\samples\scribble\step4 step4.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep4
rem ------------------------------------------------
REM Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
if not exist MFC\SAMPLES\SCRIBBLE\STEP5\*.* goto nostep5
@echo Patching MFC\SAMPLES\SCRIBBLE\STEP5 directory
patch .\mfc\samples\scribble\step5 step5.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nostep5
rem ------------------------------------------------
REM Patching HELP directory
if not exist HELP\*.* goto nohelp
@echo Patching HELP directory
patch .\help help.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nohelp
rem ------------------------------------------------
REM Patching INCLUDE directory
@echo Patching INCLUDE directory
patch .\include incl.rtp /ignore /nopathsearch
@echo DONE
@echo .
rem ------------------------------------------------
REM Patching INCLUDE\SYS directory
if not exist INCLUDE\SYS\*.* goto nosys
@echo Patching INCLUDE\SYS directory
patch .\include\sys incsys.rtp /ignore /nopathsearch
@echo DONE
@echo .
:nosys
rem ------------------------------------------------
REM Patching README directory
if not exist README\*.* goto :delete
@echo Patching README directory
patch .\readme readme.rtp /ignore /nopathsearch
@echo DONE
@echo .
:delete
rem -----------------------------------------------
REM Deleting added files if no Visual Programmer
if exist BIN\VPRG.EXE goto exe2bin
del bin\efm*.*
del bin\winsmfc.*
:exe2bin
rem -----------------------------------------------
REM Deleting exe2bin.pif if not needed
if exist BIN\SCW.EXE goto optcfg
if exist LIB\SDS.LIB goto optcfg
del bin\exe2bin.pif
:optcfg
rem -----------------------------------------------
REM Deleting config file if OptLink not installed
if exist BIN\LINK.EXE goto textmode
if exist BIN\LINKD.DLL goto textmode
del bin\optlink.cfg
:textmode
rem -----------------------------------------------
REM Deleting config files if no text-mode debugger
if exist BIN\SCDW.EXE goto end
if exist BIN\SCD.EXE goto end
del bin\scdb*.cfg
:end
rem ===============================================
REM Cleaning up patch files
@echo .
@echo Successfully updated version 6.0 to 6.1
@echo .
@echo About to delete patch files.
@echo If you do not want the following files to be
@echo deleted, press Ctrl+Break, otherwise, press any key:
@echo.
@echo GRAPHIC.EXE MFCSAM.EXE PATCH.EXE *.RTP
@echo .
pause
del graphic.exe
del mfcsam.exe
del patch.exe
del *.rtp
del foo.txt
@echo .
@echo We recommend deleting PRO61.EXE and UPDATE.BAT to free up
@echo 4.5 MB of disk space
goto done
:wrongdir
@echo Compiler not found. Probably copied PRO61.EXE to wrong directory
:done